package com.yyq.adms.bzgf.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yyq.adms.yyb.utils.YYBUtils;
import com.yyq.sos.pojo.BaseEntity;

@Entity
@Table(name = "standardpublish")
public class StandardPublish extends BaseEntity  implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	private String standardPublishName;  //名称
	private String standardCode;  //标准号
	private String editorOrActor;  //主编或参编       1-主编      2--参编
	private String createOrModify;  //制定或修订    1--制定    2--修订  
	private String joinDep;  //参与单位
	private String members;  //规范组成员
	private String degree;  //等级   0--未设定    1-国家级   2--省部级   3--地方级
	private String levelName;   //级别名称
	private Date publishDate;  //发布时间
	private Date dealDate; //实施时间
	private String state;  //状态：1--已发布   2--实行中   3--已过期
	
	private Date stopDate; //废止时间
	private String belongPlateFormID;  //所属平台
	private String sentDep;  //报送单位
//	private int isGlobal;  //是否全局
//	private int isHavePatents;  //是否有附件
	private int isEnabled;  //
	private Integer sourceID;	
	private String belongYear;

	/**
	 * 批注
	 */
	private String endorse;
	
	
	/**
	 * 单位名称
	 */
	private String sentDepName;
	
	@Column(name = "belongyear")
	public String getBelongYear() {
		return belongYear;
	}

	public void setBelongYear(String belongYear) {
		this.belongYear = belongYear;
	}

	@Column(name = "standardpublishname")
	public String getStandardPublishName() {
		return standardPublishName;
	}

	public void setStandardPublishName(String standardPublishName) {
		this.standardPublishName = standardPublishName;
	}

	@Column(name = "editororactor")
	public String getEditorOrActor() {
		return editorOrActor;
	}

	public void setEditorOrActor(String editorOrActor) {
		this.editorOrActor = editorOrActor;
	}

	@Column(name = "createormodify")
	public String getCreateOrModify() {
		return createOrModify;
	}

	public void setCreateOrModify(String createOrModify) {
		this.createOrModify = createOrModify;
	}

	@Column(name = "joindep")
	public String getJoinDep() {
		return joinDep;
	}

	public void setJoinDep(String joinDep) {
		this.joinDep = joinDep;
	}

	@Column(name = "members")
	public String getMembers() {
		return members;
	}

	public void setMembers(String members) {
		this.members = members;
	}

	
	@Column(name = "standardcode")
	public String getStandardCode() {
		return standardCode;
	}

	public void setStandardCode(String standardCode) {
		this.standardCode = standardCode;
	}
	@Column(name = "degree")
	public String getDegree() {
		return degree;
	}

	public void setDegree(String degree) {
		this.degree = degree;
	}
	@Column(name = "levelname")
	public String getLevelName() {
		return levelName;
	}

	public void setLevelName(String levelName) {
		this.levelName = levelName;
	}
	@Column(name = "publishdate")
	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}
	@Column(name = "dealdate")
	public Date getDealDate() {
		return dealDate;
	}

	public void setDealDate(Date dealDate) {
		this.dealDate = dealDate;
		String _year = YYBUtils.getFormatDateYear(dealDate);
		this.setBelongYear(_year);
	}
	@Column(name = "state")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	@Column(name = "stopdate")
	public Date getStopDate() {
		return stopDate;
	}

	public void setStopDate(Date stopDate) {
		this.stopDate = stopDate;
	}
	
	@Column(name = "belongplateformid")
	public String getBelongPlateFormID() {
		return belongPlateFormID;
	}

	public void setBelongPlateFormID(String belongPlateFormID) {
		this.belongPlateFormID = belongPlateFormID;
	}

	

	@Column(name = "isenabled")
	public int getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(int isEnabled) {
		this.isEnabled = isEnabled;
	}

	@Column(name = "sourceid")
	public Integer getSourceID() {
		return sourceID;
	}

	public void setSourceID(Integer sourceID) {
		this.sourceID = sourceID;
	}

	@Transient
	public String getSentDep() {
		return sentDep;
	}

	public void setSentDep(String sentDep) {
		this.sentDep = sentDep;
	}
	
	@Column(name="endorse")
	public String getEndorse() {
		return endorse;
	}

	public void setEndorse(String endorse) {
		this.endorse = endorse;
	}

	@Column(name="sentdepname")
	public String getSentDepName() {
		return sentDepName;
	}

	public void setSentDepName(String sentDepName) {
		this.sentDepName = sentDepName;
	}
	

	
}
